<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>

  <!-- 挂载元素 -->
  <div id="app">

  </div>

  <script src="lib/vue.js"></script>
  <script>
    /* var vm = new Vue({
      el: '#app'
    });

    console.log(vm.$el); */

    /* var app = document.querySelector('#app');
    var vm = new Vue({
      el: app
    });

    console.log(vm.$el); */

    var app = document.getElementById('app');
    var vm = new Vue({});
    // vm.$mount('#app');
    vm.$mount(app);
    console.log(vm.$el);

  </script>
</body>
</html>